using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;


namespace MMM.Services.Type
{
    [Serializable]
    [Route("/api/workexperience", "POST,PUT")]
    public class WorkExperience : EntityBase<WorkExperience>
    {
        /// <summary>
        /// 起始日期
        /// </summary>
        [Required]
        public DateTime StartDate { get; set; }
        /// <summary>
        /// 截至日期
        /// </summary>
        [Required]
        public DateTime EndDate { get; set; }
        /// <summary>
        /// 工作单位
        /// </summary>
        [StringLength(50)]
        [Required]
        public String WorksFor { get; set; }
        /// <summary>
        /// 岗位
        /// </summary>
        [StringLength(50)]
        [Required]
        public String Post { get; set; }
        /// <summary>
        /// 汇报对象
        /// </summary>
        [StringLength(50)]
        public String Leader { get; set; }
        /// <summary>
        /// 工作内容
        /// </summary>
        [StringLength(100)]
        public String WorkContent { get; set; }
        /// <summary>
        /// 工作评价
        /// </summary>
        [StringLength(100)]
        public String WorkEvaluate { get; set; }
        /// <summary>
        /// 参与项目
        /// </summary>
        [StringLength(50)]
        public String Project { get; set; }
        /// <summary>
        /// 员工Id
        /// </summary>
        [StringLength(50)]
        [Required]
        public Guid EmpId { get; set; }
        /// <summary>
        /// 员工姓名
        /// </summary>
        [StringLength(50)]
        [Required]
        public String EmpName { get; set; }

    }
}
